<?php
require_once("constraint.php");
// the global functions

function db_connect($user=SQLUSER, $password=SQLPASSWD, $db=PROJECTNAME){
  mysql_connect('localhost', $user, $password)
       or die('I cannot connect to db: ' . mysql_error());
  mysql_select_db($db);
}
?>